We don't normally hit the code in scripting.js to print metrics
because shell-perf-tool bypasses it, but there was a left-over
in the code that no longer works. Also add in the units to the
output.
https://bugzilla.gnome.org/show_bug.cgi?id=732349
print ('------------------------------------------------------------');
for (let i = 0; i < metrics.length; i++) {
let metric = metrics[i];
- print ('# ' + scriptModule.METRIC_DESCRIPTIONS[metric]);
- print (metric + ': ' + scriptModule.METRICS[metric]);
+ print ('# ' + scriptModule.METRICS[metric].description);
+ print (metric + ': ' + scriptModule.METRICS[metric].value + scriptModule.METRICS[metric].units);
}
print ('------------------------------------------------------------');
}